package com.bootdo.wxnotify;

import com.bootdo.lvyou_specialty.domain.LvyouSpecialtyOrderContent;
import org.dom4j.Element;

/**
  * 事件观察者
 　　* @author 郝江波
 　　* @date 2019/9/7 11:47
 　　*/
public abstract class WxEventObserver {
     private WxEventSubject wxEventSubject = new WxEventSubject();
     private OrderSaveEventSubject orderSaveEventSubject = new OrderSaveEventSubject();

     public WxEventObserver(){
         wxEventSubject.attach(this);
         orderSaveEventSubject.attach(this);
     }

     public abstract void notify(Element rootElement);
     public abstract void notify(LvyouSpecialtyOrderContent xinfangOrder);
}
